#include "comment.h"

void test()
{
     struct sockaddr_in sin;
     sin.sin_family = AF_INET;   // IPV4的网络地址版本
     sin.sin_port = htons(9010); // 把9000号端口转为网络字节序并赋值给端口参数

     u_int32_t ip = 0;
     // 把字符串ip地址转为网络字节序ip
     inet_pton(AF_INET, "192.168.74.129", &ip);
     sin.sin_addr.s_addr = ip;

     HOSTADDR addr = convertNetToHost(sin);
}